<?php
class CommentViewModel extends ViewModel {
	public $viewFields = array(
		'Comment'=>array('id', 'types', 'member_id', 'ip', 'add_time', 'target_id', 'content', 'status', 'parent_id', 'good', 'bad', 'star_count', 'name', '_type'=>'LEFT'),
		'Member'=>array('username', 'pic'=>'face', '_on'=>'Comment.member_id=Member.id'),
	);
}